import request from '@/utils/request'

export function listType(query) {
  return request({
    url: '/formulaType/list',
    method: 'get',
    params: query
  })
}

export function add(query) {
  return request({
    url: '/formulaType/add',
    method: 'post',
    params: query
  })
}

export function update(query) {
  return request({
    url: '/formulaType/update',
    method: 'put',
    params: query
  })
}

export function deleteById(query) {
  return request({
    url: '/formulaType/delete',
    method: 'delete',
    params: query
  })
}